<?php

namespace App\Models;

use App\Models\Admin\Level;
use Illuminate\Database\Eloquent\Model;

class Vpn extends Model
{
    public $table = 'vpns';


    public $fillable = [
        'name',
        'description',
        'serverhost',
        'remote_id',
        'username',
        'password',
        'level_id',
        'image'
    ];

    public function level()
    {
        return $this->belongsTo(Level::class, 'level_id', 'id');
    }
}
